<?php
echo $this->form;
?>
<script>
document.getElementById('fname').value= "<?php echo $this->result[0]['fname']?>"
document.getElementById('lname').value= "<?php echo $this->result[0]['lname']?>"
document.getElementById('email').value= "<?php echo $this->result[0]['email']?>"
document.getElementById('username').value= "<?php echo $this->result[0]['username']?>"
document.getElementById('password').value= "<?php echo $this->result[0]['password']?>"
document.getElementById('status').value= "<?php echo $this->result[0]['status']?>"
</script>